#!/bin/bash

# https://www.cnblogs.com/jjzd/p/6397495.html

# = 两边不能有空格
temp1="bao"
temp2="huajie"
your_name="qinjx"
if [[ $temp1 == $temp2 ]];
then
  echo "相等"
  else
    echo "不相等"
fi

echo "result:$your_name"


temp3="baobao"
temp4="huajie"

if [[ $temp1 != $temp2 ]] && [[ $temp3 != $temp4 ]]; then
    echo "成功"
    else
      echo "失败"
fi